package org.tjc.net.manager.config.conf.parser;

/**
 * @Author: tjc
 * @description
 * @Date Created in 21:07 2020-12-09
 */
public class Token {
    private String value;
    private int type;
    private int line;
    private int offset;

    public static final int TYPE_VAR = 1;
    public static final int TYPE_OP = 2;
    public static final int TYPE_BREAK = 3;
    public static final int TYPE_COMMENT = 4;
    public static final int TYPE_EOF = 5;
    public static final int TYPE_NUM = 5;


    public Token(String value, int type, int line, int offset) {
        this.value = value;
        this.type = type;
        this.line = line;
        this.offset = offset;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public int getLine() {
        return line;
    }

    public void setLine(int line) {
        this.line = line;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
